import request from '@/utils/request'

/**
 * 字典表列表接口
 * 0所有1车辆2单位3司机4申请用车
 */
export function listJson(data) {
  return request({
    url: '/admin/dictionary/listJson.do',
    method: 'post',
    data
  })
}
/**
 * 根据id获取baseconst数据
 * findBaseconstByTypeId.do?basetypeId=1
 */
export function findBaseconstByTypeId(data) {
  return request({
    url: '/admin/dictionary/findBaseconstByTypeId.do',
    method: 'post',
    data
  })
}
/**
 * 新增baseconst
 * name
 * baseTypeId
 */
export function addBaseconst(data) {
  return request({
    url: '/admin/dictionary/addBaseconst.do',
    method: 'post',
    data
  })
}
/**
 * 修改baseconst
 * name
 * baseConstId
 */
export function changeBaseconstById(data) {
  return request({
    url: '/admin/dictionary/changeBaseconstById.do',
    method: 'post',
    data
  })
}
/**
 * 删除baseconst
 * baseConstId
 */
export function removeBaseconstById(data) {
  return request({
    url: '/admin/dictionary/removeBaseconstById.do',
    method: 'post',
    data
  })
}
/**
 * 修改basetype
 * name
 * baseConstId
 */
export function changeBaseTypeById(data) {
  return request({
    url: '/admin/dictionary/changeBaseTypeById.do',
    method: 'post',
    data
  })
}
/**
 * /admin/dictionary//getProperties.do?baseTypeId=32
 * baseTypeId=3 编制类型
 * baseTypeId=4 车辆类型
 */
export function getProperties(data) {
  return request({
    url: '/admin/dictionary/getProperties.do',
    method: 'post',
    data
  })
}
